<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>JSDoc: Source: base/api/user-info.js</title>

    <script src="scripts/prettify/prettify.js"> </script>
    <script src="scripts/prettify/lang-css.js"> </script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>

<body>

<div id="main">

    <h1 class="page-title">Source: base/api/user-info.js</h1>

    



    
    <section>
        <article>
            <pre class="prettyprint source linenums"><code>/**
 *   api
 *  @module base/api/userInfo
 *  @author coder
 */

// API_HOST
import {
  API_HOST
} from '@/config'

// ajax
import ajax from '@/utils/ajax'

/**
 * 获取userInfo列表
 * @const
 * @type {String}
 * @default  '[API_HOST]/api/user-info'
 */
export const FETCH_USER = API_HOST + '/api/user-info'

/**
 * 获取userInfo列表
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export function fetchUser(data) {
  return ajax({
    method: 'get',
    data: data,
    url: FETCH_USER
  })
}
</code></pre>
        </article>
    </section>




</div>

<nav>
    <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-base_api_user.html">base/api/user</a></li><li><a href="module-base_api_userInfo.html">base/api/userInfo</a></li><li><a href="module-base_mixin_user.html">base/mixin/user</a></li><li><a href="module-base_mixin_userInfo.html">base/mixin/userInfo</a></li><li><a href="module-base_types.html">base/types</a></li><li><a href="module-mapping_index.html">mapping/index</a></li><li><a href="module-mock_templates.html">mock/templates</a></li><li><a href="module-router_index.html">router/index</a></li><li><a href="module-store_getters.html">store/getters</a></li><li><a href="module-store_index.html">store/index</a></li><li><a href="module-store_mutations.html">store/mutations</a></li><li><a href="module-store_state.html">store/state</a></li></ul>
</nav>

<br class="clear">

<footer>
    Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.3</a> on Mon Mar 02 2020 12:59:34 GMT+0800 (China Standard Time)
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>
